package org.sn.jdish.designmode.state;

import org.sn.jdish.designmode.state.impl.RunCarState;
import org.sn.jdish.designmode.state.impl.StartCarState;
import org.sn.jdish.designmode.state.impl.StopCarState;

public class StateMain {

	public static void main(String[] args) {
		CarContext carContext = new CarContext();
		carContext.setCarState(new StartCarState());
		carContext.action();

		carContext.setCarState(new RunCarState());
		carContext.action();

		carContext.setCarState(new StopCarState());
		carContext.action();
	}

}
